﻿using System;
using System.Collections.Generic;
using System.Text;

namespace TPAMain数据维护工具V2
{
    class SQLLogHelper
    {
        static string strInsertLog = "insert into ModifyLog (修改时间,修改内容) values (getdate(),'@修改内容')";

        public static void WriteLog(string strLog)
        {
            SqlTools sqt = new SqlTools(GeneralTools.GetConnectionString(Properties.Settings.Default.Host, Properties.Settings.Default.DBName));
            sqt.DoCmdExecuteNonQuery(strInsertLog.Replace("@修改内容", strLog));
        }
    }
}
